package com.paradogs.gs.modules.gm;

import com.paradogs.framework.annotations.serverHandler.PRHandler;
import com.paradogs.framework.annotations.serverHandler.PRMapping;
import com.paradogs.gs.misc.Bow;
import com.paradogs.gs.modules.gm.msg.CGAddItem;

import java.util.Map;

/**
 * @author: yumi
 * @date: 2024/10/29  18:26
 * @Description: TODO
 */
@PRHandler
@PRMapping("gm")
public class GMHandler {

    @PRMapping("addItem")
    public void addItem(CGAddItem cg) {
        Bow.owner().inventoryMgr().update(null, Map.of(cg.getItemId(), cg.getCount()));
    }


}
